initrd=""
options=""
linux=""
+ devicetree=""
while read -r line
do
"linux")
linux=${value}
;;
+ "devicetree")
+ devicetree=${value}
+ ;;
"options")
options=${value}
;;
if [ -n "${initrd}" ] ; then
menu="${menu}\t initrd ${boot_prefix}${initrd}\n"
fi
+ if [ -n "${devicetree}" ] ; then
+ menu="${menu}\t devicetree ${boot_prefix}${devicetree}\n"
+ fi
menu="${menu}}\n\n"
done
# The printf command seems to be more reliable across shells for special character (\n, \t) evaluation
const char *options;
const char *kernel;
const char *initrd;
+ const char *devicetree;
char *quoted_title = NULL;
char *uuid = NULL;
char *quoted_uuid = NULL;
g_string_append_c (output, '\n');
}
+ devicetree = ostree_bootconfig_parser_get (config, "devicetree");
+ if (devicetree)
+ {
+ g_string_append (output, "devicetree");
+ g_string_append_c (output, ' ');
+ g_string_append (output, devicetree);
+ g_string_append_c (output, '\n');
+ }
+
g_string_append (output, "}\n");
}